package com.oil.petro.eshop.service;

import com.oil.petro.eshop.bean.UserBean;
import com.oil.petro.eshop.entity.Account;
import com.oil.petro.eshop.entity.Person;
import com.oil.petro.eshop.entity.Product;

public interface UserAccountService {

    //Person
    public Person getPerson(int id);

    public void deletePerson(Person person);

    public Integer savePerson(Person person);

    public void updatePerson(Person person);
    
    //Account
    public Account getAccount(int id);

    public void deleteAccount(Account account);

    public int saveAccount(Account account);

    public void updateAccount(Account account);
    
    public void saveUser(UserBean userBean);
    
    public Account getAccountByLogin(String login);
    //UserAccount
    //public void registerUser
   public int getAccountStatus(String login);
//    public void addAccount(Account account);
//    public Account getAccount(int id);
   
   public int getNumberProductsInCart(String login);
   public UserBean getUserDetails(String login) ;
 //  public void addProductToCart(Account account, Product product);
   
   public boolean isUniqueUser(String loigin);
   
}
